#ifndef WEATHERDATA_H
#define WEATHERDATA_H

#include "Subject.h"

class WeatherData : public Subject {
private:
    list<Observer*> observers;
    float temperature;
    float humidity;
    float pressure;
public:
    WeatherData();
    void registerObserver(Observer* o);
    void removeObserver(Observer* o);
    void notifyObservers();
    void measurementsChanged();
    void setMeasurements(float temperature, float humidity, float pressure);
};


#endif // WEATHERDATA_H
